home *** CD-ROM | disk | FTP | other *** search
- G4C
-
- TEXTFILE env:.Tb_Goal
- Table.gc V1.05 17 Aug 2001
- Author: Joseph Duchâtelet jduchatelet @arcadis.be
- When you want to print HTML files from IBrowse using the 'Postscript'
- Print possibility, you may observe that some tables (*) are not fully
- printed at the right side. That's because they are not defined in
- relative value (most seem to be) but in absolute value. The values chosen
- are OK for high resolution screens, but not for printing.
- This program loads an HTML page, finds its litigious 'table widths' and
- sets them to a preset value of 450 in the 'Default' ROUTINE, where you
- may want to alter it to suit your printer best.
-
- (*) or other 'fixed width' elements such as images
-
- ###
-
- TEXTFILE ENV:.Tb_Lic&Credits
- This SW is copyrighted to me, the author.
- The 'StripIt' routine is from Tony McGee
- No guarantee is given.
- You are free to use it as is and or adapt it for your private needs.
- In case you want to spread any adaption, it should respect the same
- terms and mention this initial copyright.
- No commercial use allowed without my written permission.
- The program makes use of
- - Gui4Cli which is copyrighted to Dimitris
- Keletsekis
- see http://users.hol.gr/~dck/gcmain.htm or Aminet.
- reach him at dck@hol.gr or join the Gui4Cli maillist at yahoogroups.com
- - FastStrip V1.1 by Jason Frecknall (jay@blidworth.demon.co.uk )
- ###
-
- TEXTFILE ENV:.Tb_Start&Usage
- Copy the drawer any place on your HD.
- The program needs Gui4Cli properly installed.
- It needs also 'FastStrip' by Jason Frecknall in the command path
- (eg in c:) (jay@blidworth.demon.co.uk )
-
- This being the case,
- 1. You can start this program from the Workbench.
- 2. You can start the program from the shell
- a. when Gui4CLI is running
- - gui Fullpath:Table.gc (may fail if you use a relative path)
- - rx 'ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc"' or
- - rx 'ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc"' "FromFlPth" "2FlPth"
- giving it the path&name of file to transform and where to save the
- transformed file. ((*)Path: could be guitb: if you did run Table.gc
- before in your session. The program makes this assign itself)
- b. when Gui4Cli is NOT running
- - gui Path:Table.gc (relative or fullpath, but fullpath is to be preferred)
- - gui (will call up a file requester to choose Table.gc with)
- gui (comes ith Gui4Cli should be in the path (eg c:) of course )
- 3. from an other running Gui4Cli: next help screen
- ###
-
- TEXTFILE ENV:.Tb_Start&Usage2
-
- 3. You can start from an other running Gui4Cli
- - have the line
- - GuiLoad Path:Table.gc ; (*)Path: see above
- GuiLoad Path:Table.gc FrmFlPth 2FlPth
- in an event sequence
- 4. You can start from an arexx script
- - ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc" or
- - ADDRESS "Gui4Cli" GuiLoad "Path:Table.gc" "FromFlPth" "2FlPth"
- ###
-
- TEXTFILE ENV:.Tb_IB_Start
- Two methods to integrate the script with IBrowse. You choose.
- 1. First method: Two Arexx scripts are added
- - 'LaunchTable.ibrx'
- - 'GetTableResult.ibrx'
- They should be copied in the IBrowse Arexx drawer and you should
- add them to the IBrowse Macro's Menu or to the FAB menu's
- - LaunchTable.ibrx will launch Table.gc from IBrowse, whether
- Gui4Cli is running or not.
- It will ask however for the guitb: assign for the Table.gc drawer.
- You may want to have this assign in your user startup.
- Due to limitations of IBrowse Arexx commands (notably QUERY URL
- not working) you are suggested to use the program as follows
- - Save the html file in the guitb:2Transfrorm/ drawer.
- - On startup of Table.gc eg (with the LaunchTable.ibrx macro
- or when looking for a new file to transfrom,
- Table.gc's filerequester will open there first.
- - Save the transformed file in 'guitb:Transformed' drawer as proposed
- by Table.gc 's filerequester.
- and answer OK when you are asked to delete the 'original' html file
- (it's just the copy in the '2Transform/' drawer
- - Start the 'GetTableResult.ibrx' macro
- Ibrowse will identify the files in the 'Transformed' drawer:
- double click to load the transformed file
- - Print from IBrowse/Document/Print menu using
- PrintMode : Postscript
- Destination : Custom and PS: in the textinput gadget,
- if you use Turboprint and GhostScript
- 2. Second Method : simpler
- - you can still launch Table.gc with 'LaunchTable.ibrx'
- When Table.gc is running
- - Save the document to transform (Save As) in the IBrowse drawer
- (Sys:Internet/IBrowse in the script, you may have to adapt the lines of the
- xONNOTIFY commands if that is not your case) that is opened
- as APrint.html
-
- It will be transformed and loaded again in the Browser under that name.
- Print it out now as a PS file.
-
- ###
- TEXTFILE ENV:.Tb_Strip
- Using the <<Strip>> button gives you the choice to strip all the image
- links or to maintain the ones you wish. You can use <<Nn>>(None);
- <<Al>> (All) and <<Tg>> (Toggle) buttons to make your selection.
- The initial requester however d
-
- Stripping the image links will give you more place for the text and tables.
- Tables wordwrapped in too narrow columns are not easy to read!.
- If you don't strip any (or all) and just reload the transformed file
- as a local file the page will show the remaining links as 'error' icons in
- the IB window, not the original
- images. This is what will be printed out.
-
- ###
- TEXTFILE ENV:.Tb_Save
- You can save the modified document any place using <<Save>> and its
- requester. If you reload it from ram: or HD into IB and print it out,
- all images will be replaced with the 'error' images you
- have on the IB screen. If you want to maintain a number of images you
- should save the modified html document over its original one in the IB
- cache. Don't forget to save the original html page elsewhere.
- (eg Keep it in the 2Transform drawer, when the program proposes
- to delete it)
- You can recognize the original page visually in the cache through its
- date (if you just downloade it) and through its
- comment info. You may want to use a 'find utility' to locate it.
- ###
-
- TEXTFILE ENV:.Tb_Extensions
-
- - A button could be added to transform all the files in the 2Transform
- drawer automatically.
- - Automate the replacement (& temporary backup) of the cached document
- with its modified copy
- - Add the IBProlog functionality (ISO latin character set)
-
- Your suggestions ?
-
- ###
-
- TEXTFILE ENV:.Tb_Changes
- V1.05
- - Added possibility to strip images, all of them or a selected set
- - Added more info on the IB Postscript printing process
- - Improved the detection of litigious tables : all should be detected now
- - Added 2 Turboprint & Ghostscript instruction documents
- - Added ib2.html and ib2.ps testfiles
- - Added help information on IBrowse Postscript printing in general.
- (Any correction, addition , suggestion welcome)
- ###
-
- xONQUIT
- Delete env:.Tb_#? ; help info
-